package com.yenlien.traceyun.milk.dao;

import com.yenlien.traceyun.milk.entity.MilkManage;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

/**
 * @Date 2022/10/17
 * @Author jiaLong
 * @Descript
 */
public interface MilkManageDao extends BaseJpaDao<MilkManage> {


    MilkManage findById(String id);

    @Query(value = "select COUNT(*) from t_milk_manage", nativeQuery = true)
    Integer cnt();

}
